//
// Created by mgr on 2019/1/6.
//

#include "CMain1FrameWnd.h"


namespace cliMain {
    CMain1FrameWnd::CMain1FrameWnd(CHorizontalLayoutUI*lat):CRuisBaseWindow("main_tab1","window/cather.xml") {
        layout=lat;
    }


    void CMain1FrameWnd::Init(){
    }

    void CMain1FrameWnd::InitWindow(){
        LayoutOnSize(nullptr);
    }
    void CMain1FrameWnd::Notify(TNotifyUI& msg) {
        CRuisBaseWindow::Notify(msg);
    }

    LRESULT CMain1FrameWnd::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) {
        CRuisBaseWindow::OnDestroy(uMsg,wParam,lParam,bHandled);
    }

    bool CMain1FrameWnd::LayoutOnSize(void *p) {
        RECT rc = layout->GetPos();
        ::MoveWindow(GetHWND(), rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, true);
        return true;
    }
}